Create additional keyframes at beginning and end of selection
The Create additional keyframes at beginning and end of selection option in the Timeline Drag & Drop Preferences dialog box adds a keyframe to the beginning and end of the pasted selection.